package com.hsc.www;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class MyController {

    @Autowired
    UserServices userServices;

    @RequestMapping("/getUsers")
    Object getUsers() {
        Map map = new HashMap();
        map.put("isSuccess", 1);
        map.put("msg", "成功");
        map.put("data", userServices.getUsers());
        return map;
    }


}
